revOpenDatabases
Type
function
Summary
Returns a list of open databases.
Syntax
revOpenDatabases()
Description
Use the revOpenDatabases function to find out how many databases are open, or in a repeat loop to access all the open databases in turn.
The database ID returned by the revOpenDatabases function is the same as the number returned by the revOpenDatabase function when the database was opened.
If the operation is not successful, the revOpenDatabases function returns an error message that begins with the string "revdberr".
The revOpenDatabases command is part of the Database library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure both the "Database" library checkbox and those of the database drivers you are using are checked.
Examples
revOpenDatabases()
repeat for each item thisConnection in revOpenDatabases()
if revOpenDatabases is empty then cleanUp
Related
keyword: string
library: Database library
control structure: function, repeat
function: revDatabaseConnectResult, revOpenDatabase, revDatabaseType
glossary: LiveCode custom library, Standalone Application Settings, database, loop, return, standalone application, command
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile